/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 题库管理Entity
 * @author dh
 * @version 2017-01-15
 */
public class ResourceRepertory extends DataEntity<ResourceRepertory> {

	private static final long serialVersionUID = 1L;
	private String repertoryName;		// 题库名称
	private String repertoryAttribute;		// 题库属性
	private String questionSum;		// 题目总数
	private String experimentSum;		// 实验题目数量
	
	public ResourceRepertory() {
		super();
	}

	public ResourceRepertory(String id){
		super(id);
	}

	@Length(min=1, max=64, message="题库名称长度必须介于 1 和 64 之间")
	public String getRepertoryName() {
		return repertoryName;
	}

	public void setRepertoryName(String repertoryName) {
		this.repertoryName = repertoryName;
	}
	
	@Length(min=1, max=4, message="题库属性长度必须介于 1 和 4 之间")
	public String getRepertoryAttribute() {
		return repertoryAttribute;
	}

	public void setRepertoryAttribute(String repertoryAttribute) {
		this.repertoryAttribute = repertoryAttribute;
	}
	
	@Length(min=0, max=8, message="题目总数长度必须介于 0 和 8 之间")
	public String getQuestionSum() {
		return questionSum;
	}

	public void setQuestionSum(String questionSum) {
		this.questionSum = questionSum;
	}
	
	@Length(min=0, max=8, message="实验题目数量长度必须介于 0 和 8 之间")
	public String getExperimentSum() {
		return experimentSum;
	}

	public void setExperimentSum(String experimentSum) {
		this.experimentSum = experimentSum;
	}
	
}